package com.woniu.cloud.movie.movie3assembly.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.cloud.movie.api.dto.MovieDto;
import com.woniu.cloud.movie.api.dto.MoviesDto;
import com.woniu.cloud.movie.api.exception.mv.MovieException;
import com.woniu.cloud.movie.api.param.movieParam.MovieAddParam;
import com.woniu.cloud.movie.api.param.movieParam.MovieChangeParam;
import com.woniu.cloud.movie.api.param.movieParam.MovieDeleteParam;
import com.woniu.cloud.movie.api.param.movieParam.MovieLikeGetsParam;
import com.woniu.cloud.movie.movie3assembly.entity.Movie;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tiangle
 * @since 2022-01-11
 */
public interface MovieService extends IService<Movie> {
    MovieDto saveMovie(MovieAddParam movieAddParam) throws MovieException;
    MovieDto upMovie(Integer id) throws MovieException;
    MovieDto downMovie(Integer id) throws MovieException;

    MoviesDto likeMovie(MovieLikeGetsParam movieLikeGetsParam);

    boolean deleteMovie(Integer id) throws MovieException;
    boolean deleteMovies(MovieDeleteParam movieDeleteParam) throws MovieException;

    boolean updateMovie(MovieChangeParam movieChangeParam) throws MovieException;
}
